#include "Communication.h"

class CMessageSendByEvent : public IMessageSend
{
	HANDLE m_sendevent;
	HANDLE m_recvevent;

	HANDLE m_mapobj;
	strstream* m_stream;
	BOOL m_bIsClose;
public:
	CMessageSendByEvent(HANDLE cevent=NULL,HANDLE revent=NULL,HANDLE mapobj=NULL);
	~CMessageSendByEvent();
	virtual BOOL Open(PCHAR* names);
	virtual LONGLONG Send(IMessage* message);
	virtual void Close();
};